#include("../../comm/ListHead.html")
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card" id="codes" style="min-height: calc(100vh - 30px);">
                <div class="layui-card-header SearchTable">
                    <p style="float:right"></p>
                    <label class="table-search-title-first">远程地址:</label>
                    <input type="text" id="addr" lay-verify="required" placeholder="" autocomplete="off"
                           class="table-search-text" style="width:500px;">
                    <button class="layui-btn layui-btn-warm layui-btn-sm" lay-event="DoSearch">
                        读取
                    </button>
                </div>
                <div class="layui-card-body">
                    <textarea class="layui-slider-input-txt" id="CodeArea" style="width:100%;height:300px"></textarea>

                </div>
            </div>
        </div>
    </div>
</div>
<script language="JavaScript">
    var USER_JWT = "";
    var index = 0;
    var admin;
    var table, tableindex;

    layui.use(['table', 'form', 'util', 'code', 'myTool'], function () {
        $ = layui.$;
        admin = layui.admin, table = layui.table, form = layui.form, tree = layui.tree;

        layui.util.event("lay-event", {
            DoSearch: function () {
                var addr = $("#addr").val();
                $.get("ReadUrlApi", {urls: addr}, function (result) {
                    layui.code({about: false});
                    $("#CodeArea").val(result.msg);
                });
            }
        });
    });
</script>
#include("../../comm/Foot.html")